<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">  
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        // call 改变函数this的指向，函数调用的时候执行
        var li="li";
        var obj={
            name="cheng"
        }
        var test=function(){
            console.log(this.name)
        }
        test.call(obj);
        </script>
</body>
</html>